// 引入导出的axios
import request from "../utils/request";

//根据商品id获取规格信息 get请求
export function getSpecificationsBymerchandiseId(merchandiseId) {
    return request.get(`/specifications/${merchandiseId}`)
}


//获取属性 get请求
export function getAttribute() {
    return request.get(`/Specifications/Attribute`)
}

//获取属性值 get请求
export function getAttributeValue() {
    return request.get(`/Specifications/AttributeValue`)
}


//新增属性请求
export function addAttribute(data) {
    return request.post('/specifications/addAttribute', data)
}

//新增规格
export function addSpecifications(data) {
    return request.post('/Specifications', data)
}